package cn.com.wxd.wechat.company.bean;


import java.io.Serializable;

import cn.com.wxd.wechat.company.util.json.WxCpGsonBuilder;

/**
 * 微信部门
 * @author
 */
public class WxCpDepart implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3880874767722426677L;
	private Integer id;
	private String name;
	private Integer parentId;
	private Integer order;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getOrder() {
		return order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}

	public static WxCpDepart fromJson(String json) {
		return WxCpGsonBuilder.create().fromJson(json, WxCpDepart.class);
	}

	public String toJson() {
		return WxCpGsonBuilder.create().toJson(this);
	}

	public String toString() {
		return "WxCpDepart{" + "id=" + id + ", name='" + name + '\'' + ", parentId=" + parentId + ", order=" + order + '}';
	}
}
